package day07;

public class txt13 {
    public static void main(String[] args) {
        int[]a={8,6,4,9,3};
        getmax(a);
        System.out.println(a[4]);

    }



    static void getmax(int[]a){
        for (int i = 0; i < a.length-1; i++) {
            if(a[i]>a[i+1]){
                int t=a[i];
                a[i]=a[i+1];
                a[i+1]=t;
            }
        }
    }
}
